package com.rbac.modules.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "登录日志查询参数")
public class LoginLogQuery {
    
    @Schema(description = "用户名")
    private String username;
    
    @Schema(description = "登录IP")
    private String ip;
    
    @Schema(description = "登录地点")
    private String location;
    
    @Schema(description = "浏览器")
    private String browser;
    
    @Schema(description = "操作系统")
    private String os;
    
    @Schema(description = "登录状态（0：失败，1：成功）")
    private Integer status;
    
    @Schema(description = "开始时间")
    private LocalDateTime startTime;
    
    @Schema(description = "结束时间")
    private LocalDateTime endTime;
    
    @Schema(description = "排序字段")
    private String orderBy;
    
    @Schema(description = "排序方式（asc/desc）")
    private String orderType;
    
    @Schema(description = "当前页码", defaultValue = "1")
    private Integer current = 1;
    
    @Schema(description = "每页条数", defaultValue = "10")
    private Integer size = 10;
} 